<%-- 
    Document   : ManageHomePage
    Created on : Mar 5, 2015, 3:10:57 PM
    Author     : trang_000
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@taglib uri="http://displaytag.sf.net"  prefix="display" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="description" content="<s:property value="pageDescription"/>">
        <title><s:property value="title"/> - Online Dormitory System</title>
        <link href="<%= request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css"/>
    </head>
    <body>
        <% int i = 0;%>
        <div class="headerbg">
            <%@include file="/include/nHeader.jsp" %>
        </div>
        <div class="contentbg">
            <div class="content1">
                <div class="content2">
                    <div class="contentLeft">
                        <div class="categories">
                            <div class="allCat">ALL CATEGORIES</div>
                            <%@include file="/include/nCategories.jsp" %>
                        </div>
                    </div>
                    <div class="contentRight">
                        <div class="body">
                            <div class="breadcrumb">
                                Home
                            </div>
                             <display:table class="simpletable" export = "true" name="usersList" pagesize="8" requestURI="all-user">  
                                    <%i++;%>
                                    <display:column title="No" media="html" group="1" >
                                        <p><%out.print(i);%></p>
                                    </display:column>          
                                    <display:column property="UserID" title="UserID" sortable="true"/>    
                                    <display:column property="UserName" title="Username" sortable="true"/>         
                                    <display:column property="Password" title="Password" sortable="true" />  
                                    <display:column media="html" title="Edit">
                                        <a href="<%= request.getContextPath()%>/Profile-Process/<s:property value='UserID'/>" title="<s:property value='studentCode'/>">
                                            <img src="<%= request.getContextPath()%>/css/Edit.png" style="" alt="Creer Contrait" width="20" height="auto" title="Creer Contrait"/>
                                        </a>        
                                    </display:column> 
                                    <display:column media="html" title="Ban">
                                        <a href="<%= request.getContextPath()%>/Profile-Process/<s:property value='UserID'/>" title="<s:property value='studentCode'/>">
                                            <img src="<%= request.getContextPath()%>/css/notDelete.gif" style="" alt="Creer Contrait" width="20" height="auto" title="Creer Contrait"/>
                                        </a> 
                                    </display:column> 
                                    <display:footer> 
                                        
                                        -------------------------------------------------------------------
                                        <!--                                        CheckAll<input type="checkbox" id="mainCheckbox" name="check/uncheck all" onclick='checkedAll();'/>-->
                                    </display:footer>
                                </display:table> 
                            <div class="bodyUpper">
                                  <display:table class="simpletable" export = "true" name="profilesList" pagesize="8">  
                                    <%i++;%>
                                    <display:column title="No" media="html" group="1" >
                                        <p><%out.print(i);%></p>
                                    </display:column>          
                                    <display:column property="firstName" title="First Name" sortable="true"/>         
                                    <display:column property="lastName" title="Last Name" sortable="true" /> 
                                    <display:column property="studentCode" title="Student Code" sortable="true" />  
                                    <display:column property="phoneNo" title="Phone No" sortable="true"/>         
                                    <display:column property="dob" title="DoB" sortable="true" /> 
                                    <display:column property="email" title="Email" sortable="true" />  
                                    <display:column media="html" title="Creer Contrait">

                                        <s:property value='idProfile'/>
                                    </display:column> 
                                    <display:footer> 
                                        -------------------------------------------------------------------
                                        <!--                                        CheckAll<input type="checkbox" id="mainCheckbox" name="check/uncheck all" onclick='checkedAll();'/>-->
                                    </display:footer>
                                </display:table> 
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="footerbg">
            <%@include file="/include/iFooter.jsp" %>
        </div>
    </body>
</html>
